
//***********************************************
//
//      Filename: pp5_1.java
//
//        Author: wwb
//        Mails: 1274860621@qq.com
//        Create: 2018-04-07 20:52:47
// Last Modified: 2018-04-07 20:52:47
//***********************************************
import java.util.Scanner;

public class pp5_1
{
public static void main(String[]args)
{
int Year;

Scanner scan = new Scanner(System.in);

System.out.println("Please enter a year: ");
Year = scan.nextInt();

while (Year<1582)
{ System.out.println("This number is error,please enter again: ");
Year = scan.nextInt();
 }
if (Year%4==0&&Year%100!=0||Year%400==0)
System.out.println("this year is leap year.");
else
System.out.println("this year is not leap year.");
}
}
 
